from django import forms

from tinymce.widgets import TinyMCE

from .models import Article


class RecommendForm(forms.ModelForm):
    """
    投递原文表单
    """
    class Meta:
        model = Article
        fields = ('category', 'original_title', 'original_link', 'title')


class TranslateForm(forms.Form):
    """
    原文翻译表单
    """
    content = forms.CharField(widget=TinyMCE)
